package com.example.thread.case4;

import java.nio.ByteBuffer;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Test3 {

    static ExecutorService es = Executors.newScheduledThreadPool(3);

    public static void main(String[] args) {

        for(int i=0;i<1024;i++){
            ByteBuffer.allocateDirect(1024*1024);
            System.out.println(i);
            System.gc();
        }
    }
}
